common: avoid atomic read-modify-write accesses in map_vcpu_info()
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:40:56 +0000 (14:40 +0100)
committerJulien Grall <julien.grall@arm.com>
Fri, 14 Jun 2019 13:38:40 +0000 (14:38 +0100)
commitb7ab29d448d58e75281046281689d2d1d71fa1d5
treed7a2d0b1446fde42d18fda951a7bd2a957c01663
parent33a9494e2d758f99b58fd73adef3122e30480ab8
common: avoid atomic read-modify-write accesses in map_vcpu_info()

There's no need to set the evtchn_pending_sel bits one by one. Simply
write full words with all ones.

For Arm this requires extending write_atomic() to also handle 64-bit
values; for symmetry read_atomic() gets adjusted as well.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/common/domain.c
xen/include/asm-arm/atomic.h